/****************************************************************************
 *
 * Copyright (C) 2003-2010 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse.dataset.juniper;

import nfse.NetFSE;
import nfse.NetFSERecord;
import nfse.NetFSEUtil;


public class NetScreen5400Record extends NetFSERecord {

    public int proto = -1;

    public int dstPort = -1;

    public int srcPort = -1;

    public long dstIP = -1;

    public String dstAddr = "";

    public String srcZone = "";

    public String dstZone = "";

    public int duration = 0;

    public long srcBytes = 0;

    public long dstBytes = 0;

    public String service = "";

    public String action = "";
    
    public int icmpType = -1;
    
    public String sessionId = "";

    protected static int MAX_ACTION_LEN = 200;

    protected static int MAX_SERVICE_LEN = 100;

   

    /***************************************************************************
     * This method performs no operation by default. It should be overridden by
     * event type implementations with destination IP addresses and should set
     * the values of dstIP and dstAddr.
     * 
     */
    public void setDstIP(long dstIP) {
        this.dstIP = dstIP;
        this.dstAddr = NetFSEUtil.convertLongToIP(dstIP);
    }
    
    public int[] getIndexedFields() {
        int[] temp = { NetFSE.FIELD_START_TS, NetFSE.FIELD_SRC_IP, NetFSE.FIELD_DST_IP, NetFSE.FIELD_DST_PORT };
        return temp;
    }

    @Override
    public long getDstIP() {
        return dstIP;
    }

    @Override
    public int getDstPort() {
        return dstPort;
    }


}
